#include <windows.h>

#define LOG_TYPE_ERROR    EVENTLOG_ERROR_TYPE
#define LOG_TYPE_WARNING  EVENTLOG_WARNING_TYPE
#define LOG_TYPE_INFO     EVENTLOG_INFORMATION_TYPE

bool log(int type,const char *message);
void service(int argc, char *argv[]); //Call this function to start the service

void WINAPI serviceMain(DWORD argc, LPTSTR *argv); //Entrypoint for the service, call "service(..)" to start the service.
void WINAPI serviceCtrlHandler(DWORD ctrl);
void reportServiceStatus(DWORD currentState,DWORD exitCode,DWORD wait);

void quit(); //The service should call this to quit.
